//
//  MYGFindListModel.swift
//  MYGrow
//
//  Created by 小火科技 on 2024/3/18.
//

import HandyJSON

class MYGFindListModel: HandyJSON {
    var id = 0
    var doctor_id = 0
    var user_id = 0
    var content = ""
    var likes = 0
    var comments = 0
    var medias: [String] = []
    var type = 0
    var status = 0
    var address = ""
    var lng = ""
    var lat = ""
    var created_at = ""
    var updated_at = ""
    var doctor: MYGFindDoctor = MYGFindDoctor()
    var is_like = 0
    var is_collects = 0
    var size: CGSize?
    var shares = 0
    var is_followup = 0
    
    required init() {
        
    }
    
    func mapping(mapper: HelpingMapper) {
        mapper <<< self.doctor <-- ["patient", "doctor"]
    }
}

class MYGFindDoctor: HandyJSON {
    var id = 0
    var avatar = ""
    var name = ""
    var im_user_id = ""
    
    required init() {
    }
}
